const getters = {
  sidebar: state => state.app.sidebar,//侧边栏导航栏
  device: state => state.app.device,//设备信息(移动端、pc)
  
  token: state => state.user.token,//token
  avatar: state => state.user.userInfo.staffPhoto,//用户头像
  name: state => state.user.userInfo.username,//用户名
  companyId:state=>state.user.userInfo.companyId,//企业id
  points:state=>state.user.userInfo.roles.points,//按钮权限

  showLogo:state=>state.settings.sidebarLogo,//logo isShow {Boolean}

  routes: state => state.permission.routes, // 将子模块的权限开放出去
}
export default getters
